package com.min.star.service;

import java.util.List;

import javax.validation.Valid;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.min.star.model.Teacher;

public interface ITeacherService {


	List<Teacher> selectTeacherList();

	Page<Teacher> selectPage(Page<Teacher> page, Teacher teacher);
	Page<Teacher> findPage(Page<Teacher> page, Teacher teacher);
	
	int delete(Long id);

	int add(Teacher teacher);

	Teacher save(Teacher teacher);

	Teacher update(@Valid Teacher teacher);

	/**
	 * 新增阶段的重复性检查
	 * @param teacher
	 * @return
	 */
	boolean checkTeacherPhoneExist4Add(@Valid Teacher teacher);

	/**
	 * 修改阶段的重复性检查
	 * @param teacher
	 * @return
	 */
	boolean checkTeacherPhoneExist4Edit(@Valid Teacher teacher);

	int delete(String ids);

	Teacher login(Teacher teacher);

	Teacher selectById(Long id);

	int editInfo(Object name, Object value, Long id);

}
